package cn.iocoder.yudao.module.erp.controller.admin.business.order.orderaddress.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 交付地址新增/修改 Request VO")
@Data
@NoArgsConstructor
public class OrderAddressSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11501")
    private Long id;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "详细地址不能为空")
    private String name;

    @Schema(description = "地区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "0012")
    @ExcelProperty("地区编号")
    private Integer areaId;

    @Schema(description = "设为常用", example = "1")
    private Boolean status;

}